﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Hfm.Common.Entity.Industry;
using Hfm.Core.DataAccess.Industry;

namespace Hfm.Core.BusinessManager.Industry
{
    public class IndustryManager
    {
        protected readonly IndustryData IndustryDataAccess;

        public IndustryManager()
        {
            
        }

        public IndustryManager(IndustryData industryData)
        {
            IndustryDataAccess = industryData;
        }
        /// <summary>
        /// 查询所有行业
        /// </summary>
        /// <returns></returns>
        public virtual IList<IndustryEntity> GetIndustrys()
        {
            return IndustryDataAccess.GetIndustrys();
        }
        /// <summary>
        /// 根据Id查询Industry
        /// </summary>
        /// <param name="ID"></param>
        /// <returns></returns>
        public virtual IndustryEntity GetIndustryName(int ID)
        {
            return IndustryDataAccess.GetIndustryName(ID);
        }
    }
}
